﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace NUnitResultsExplorer
{
    /// <summary>
    /// Custom commands for NUnit Results Explorer.
    /// </summary>
    public static class NUnitExplorerCommands
    {
        /// <summary>
        /// Command which is executed to show 'about' information.
        /// </summary>
        public static RoutedUICommand AboutCommand { get; private set; }

        /// <summary>
        /// Command which is executed to expand all sub-nodes.
        /// </summary>
        public static RoutedUICommand ExpandAllCommand { get; private set; }

        /// <summary>
        /// Command which is executed to collapse all sub-nodes.
        /// </summary>
        public static RoutedUICommand CollapseAllCommand { get; private set; }

        /// <summary>
        /// Initialises the command objects.
        /// </summary>
        static NUnitExplorerCommands()
        {
            AboutCommand = new RoutedUICommand("_About", "About", typeof(NUnitExplorerCommands));
            ExpandAllCommand = new RoutedUICommand("_Expand All", "ExpandAll", typeof(NUnitExplorerCommands));
            CollapseAllCommand = new RoutedUICommand("_Collapse All", "CollapseAll", typeof(NUnitExplorerCommands));
        }
    }
}
